package com.zty.xiaomi.server.Mapper;

import com.zty.xiaomi.server.Entity.Insurance.Insurance;
import com.zty.xiaomi.server.Entity.Insurance.InsuranceOrder;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface InsuranceOrderMapper {
    @Select("select id,orderNo,insurance_id,start_time,expiration_time from insurance_order where orderNo = #{orderNo}")
    List<InsuranceOrder> getInsuranceOrderByOrderNo(int OrderNo);
    @Select("select *from insurance where insurance_id in(#{Insuranceids})")
    List<Insurance> getInsuranceById(String Insuranceids);

}
